import Vue from 'vue'
import Router from 'vue-router'
import Login from 'pages/login/login'
import Mine from 'pages/mine/mine'
import MineInfon from 'pages/mine/components/mine-info/mineInfo'
import MineTicket from 'pages/mine/components/mine-ticket/mineTicket'
import MineTicketDetail from 'pages/mine/components/mine-ticket/mineTicketDetail'
import MineApply from 'pages/mine/components/mine-apply/mineApply'
import MineCollect from 'pages/mine/components/mine-collect/mineCollect'
import MineVenue from 'pages/mine/components/mine-venue/mineVenue'
import MineLove from 'pages/mine/components/mine-love/mineLove'
import MineService from 'pages/mine/components/mine-voluteer/mineService'
import Train from 'pages/train/train'
import TrainSearch from 'pages/train/components/search/search'
import TrainDetail from 'pages/train/components/train-detail/trainDetail'
import TrainText from 'pages/train/components/train-text/trainText'
import TrainNum from 'pages/train/components/train-num/trainNum'
import Ddate from 'pages/date/date'
import DateDetail from 'pages/date/components/date-detail/dateDetail'
import DateActivity from 'pages/date/components/date-activity/date-activity'
import Venue from 'pages/venue/venue'
import VenueDetail from 'pages/venue/components/venue-detail/venueDetail'
import Activity from 'pages/activity/activity'
import ActivityDetail from 'pages/activity/components/activity-detail/activityDetail'
import ActivityText from 'pages/activity/components/activity-text/activityText'
import ActivityNum from 'pages/activity/components/activity-num/activityNum'
import ActivityPast from 'pages/activity/activityPast'
import ActivityPastText from 'pages/activity/components/activity-past-text/activityText'
import ActivityArticle from 'pages/activity/components/activity-article/activityArticle'
import Arts from 'pages/arts/arts'
import ArtsSearch from 'pages/arts/components/search/search'
import ArtsDetail from 'pages/arts/components/arts-detail/artsDetail'
import ArtsActivity from 'pages/arts/components/arts-activity/artsActivity'
import ArtsMessage from 'pages/arts/components/arts-message/artsMessage'
import ArtsPublish from 'pages/arts/components/arts-publish/artsPublish'
import ArtsDiscuss from 'pages/arts/components/arts-discuss/artsDiscuss'
import ArtsAdd from 'pages/arts/components/arts-add/artsAdd'
import ArtsText from 'pages/arts/components/arts-text/artsText'
import MemberInfo from 'pages/arts/components/member-info/memberInfo'
import ReleaseActivity from 'pages/arts/components/release-activity/releaseActivity'
import Join from 'pages/join/join'
import JoinMessage from 'pages/join/components/join-message/joinMessage'
import JoinText from 'pages/join/components/join-text/joinText'
import JoinPublish from 'pages/join/components/join-publish/joinPublish'
import JoinDiscuss from 'pages/join/components/join-discuss/joinDiscuss'
import Volunteer from 'pages/volunteer/volunteer'
import VolunteerSearch from 'pages/volunteer/components/search/search'
import VolunteerDetail from 'pages/volunteer/components/volunteer-detail/volunteerDetail'
import VolunteerActivity from 'pages/volunteer/components/volunteer-activity/volunteerActivity'
import VolunteerMessage from 'pages/volunteer/components/volunteer-message/volunteerMessage'
import VolunteerRelease from 'pages/volunteer/components/release-activity/releaseActivity'
import VolunteerAudit from 'pages/volunteer/components/volunteer-audit/volunteerAudit'
import VolunteerText from 'pages/volunteer/components/volunteer-text/VolunteerText'
import Brand from 'pages/brand/brand'
import BrandDetail from 'pages/brand/brandDetail'
import Online from 'pages/online/online'
import OnlineSearch from 'pages/online/components/online-search/search'
import OnlineDetail from 'pages/online/components/online-detail/onlineDetail'

Vue.use(Router)

export default new Router({
  routes: [
    {
        path: '/',
        component: Login
    },
    {
        path: '/mine',
        component: Mine
    },
    {
        path: '/mineInfo',
        component: MineInfon
    },
    {
        path: '/mineTicket',
        component: MineTicket
    },
    {
        path: '/mineTicketDetail/:id',
        component: MineTicketDetail
    },
    {
        path: '/mineApply',
        component: MineApply
    },
    {
        path: '/mineCollect',
        component: MineCollect
    },
    {
        path: '/mineVenue',
        component: MineVenue
    },
    {
        path: '/mineLove',
        component: MineLove
    },
    {
        path: '/mineService',
        component: MineService
    },
    {
        path: '/train',
        component: Train,
        children: [
            {
                path: '/trainSearch',
                component: TrainSearch
            }
        ]
    },
    {
        path: '/trainDetail/:id',
        component: TrainDetail
    },
    {
        path: '/trainText/:id',
        component: TrainText
    },
    {
        path: '/trainNum/:id',
        component: TrainNum
    },
    {
        path: '/venue',
        component: Venue
    },
    {
        path: '/venueDetail/:id',
        component: VenueDetail
    },
    {
        path: '/date/:id',
        component: Ddate
    },
    {
        path: '/dateDetail',
        component: DateDetail
    },
    {
        path: '/dateActivity/:id',
        component: DateActivity
    },
    {
        path: '/activity',
        component: Activity
    },
    {
        path: '/activityDetail',
        component: ActivityDetail
    },
    {
        path: '/activityText/:id',
        component: ActivityText
    },
    {
        path: '/activityNum/:id',
        component: ActivityNum
    },
    {
        path: '/activityPast',
        component: ActivityPast
    },
    {
        path: '/activityPastText/:id',
        component: ActivityPastText
    },
    {
        path: '/activityArticle/:id',
        component: ActivityArticle
    },
    {
        path: '/arts',
        component: Arts,
        children: [
            {
                path: '/artsSearch',
                component: ArtsSearch
            }
        ]
    },
    {
        path: '/artsDetail/:id',
        component: ArtsDetail
    },
    {
        path: '/artsActivity/:id',
        component: ArtsActivity,
        children: [
            {
                path: '/releaseActivity/:id',
                component: ReleaseActivity
            }
        ]
    },
    {
        path: '/artsMessage/:id',
        component: ArtsMessage
    },
    {
        path: '/artsPublish',
        component: ArtsPublish
    },
    {
        path: '/artsDiscuss',
        component: ArtsDiscuss
    },
    {
        path: '/artsAdd',
        component: ArtsAdd
    },
    {
        path: '/artsText/:id',
        component: ArtsText
    },
    {
        path: '/memberInfo',
        component: MemberInfo
    },
    // {
    //     path: '/releaseActivity/:id',
    //     component: ReleaseActivity
    // },
    {
        path: '/join',
        component: Join,
        children: [
            {
                path: '/joinMessage/:id',
                component: JoinMessage
            }
        ]
    },
    {
        path: '/joinPublish',
        component: JoinPublish
    },
    {
        path: '/joinDiscuss',
        component: JoinDiscuss
    },
    {
        path: '/joinText/:id',
        component: JoinText
    },
    {
        path: '/volunteer',
        component: Volunteer,
        children: [
            {
                path: '/volunteerSearch',
                component: VolunteerSearch
            }
        ]
    },
    {
        path: '/volunteerDetail/:id',
        component: VolunteerDetail
    },
    {
        path: '/volunteerActivity/:id',
        component: VolunteerActivity,
        children: [
            {
                path: '/volunteerRelease/:id',
                component: VolunteerRelease
            }
        ]
    },
    {
        path: '/volunteerMessage/:id',
        component: VolunteerMessage
    },
    {
        path: '/volunteerRelease/:id',
        component: VolunteerRelease
    },
    {
        path: '/volunteerAudit/:id',
        component: VolunteerAudit
    },
    {
        path: '/volunteerText/:id',
        component: VolunteerText
    },
    {
        path: '/brand',
        component: Brand,
        children: [
            {
                path: '/brandDetail/:id',
                component: BrandDetail
            }
        ]
    },
    {
        path: '/online',
        component: Online,
        children: [
            {
                path: '/onlineSearch',
                component: OnlineSearch
            },
            {
                path: '/onlineDetail/:id',
                component: OnlineDetail
            }
        ]
    }
  ]
})
